//
//  OrderlistCell.swift
//  WineComing
//
//  Created by xiaozhi on 15/7/20.
//  Copyright (c) 2015年 xiaozhi. All rights reserved.
//

import UIKit

class OrderlistCell: UITableViewCell {
    @IBOutlet var wineImageView:XZImageView!
    @IBOutlet var wineTitle:UILabel!
    @IBOutlet var wineNumber:UILabel!
    @IBOutlet var totalMoney:UILabel!
    @IBOutlet var otherInfo:UILabel!
    @IBOutlet var bgView:UIView!
    @IBOutlet var bgviewTopConstraint:NSLayoutConstraint!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        bgView.backgroundColor = commonBackgoundColor
        otherInfo.textColor = UIColor(red: 227.0/255, green: 107.0/255, blue: 1/255, alpha: 1.0)
        self.selectionStyle = UITableViewCellSelectionStyle.None
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    func setTopConstraintConst(value:CGFloat){
        bgView.backgroundColor = UIColor.whiteColor()
        bgviewTopConstraint.constant = value
        self.layoutIfNeeded()
    }
}
